package com.baizhi.service.impl;

import com.baizhi.annotation.AddCacheAnnotation;
import com.baizhi.annotation.DeleteCacheAnnotation;
import com.baizhi.dao.CmfzMenuDao;
import com.baizhi.entity.CmfzMenu;
import com.baizhi.service.CmfzMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CmfzMenuServiceImpl implements CmfzMenuService {


    @Autowired
    private CmfzMenuDao cmfzMenuDao;



    @Override
    @AddCacheAnnotation
    public List<CmfzMenu> selectAll() {

        return cmfzMenuDao.selectAll();
    }

    /**
     * 根据用户名 获取所有的菜单
     *
     * @return
     */
    @Override
    public List<CmfzMenu> selectAllByRole() {
        return null;
    }
}
